package Door;

/**
 * @Author czl
 * @Date 2024-03-14
 */
public class MainTest {
    public static void main(String[] args) {
        System.out.println("偷防盗门");
        SecurityDoor securityDoor = new SecurityDoor();
        Thief thief = new Thief();
        thief.stael(securityDoor);

        System.out.println("偷铁门");
        IronGate ironGate = new IronGate();
        thief.stael(ironGate);

        System.out.println("偷木门");
        WoodenDoors woodenDoors = new WoodenDoors();
        thief.stael(woodenDoors);

        System.out.println("     ");
        User user = new User();
        WoodenDoors woodenDoors1 = new WoodenDoors();
        user.comeIn(woodenDoors1);
    }
}
